package example.pattern.visitor;

public class EntryVisitor implements Visitor {

	@Override
	public void visit(File file) {
		System.out.println(file.getName() + "(" + file.getSize() + ")");
	}

	@Override
	public void visit(Directory direcotry) {
		System.out.println(direcotry.getPath());
	}

}
